<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

//    $router->get('/', 'HomeController@index')->name('admin.home');
    Route::get('/', function () {
        return redirect('admin/record');
    });
    $router->resource('product', ProductController::class);
    $router->resource('record', RecordController::class);
    $router->resource('users-bind', BindAccountController::class);
    $router->resource('wx-user', WxUserController::class);
    $router->resource('water-bill', WaterBillController::class);
});
